home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / What's New? / Development Kits / ColorSync™ 2.0.1 GM / Interfaces / AIncludes / CMMComponent.a < prev    next >
Encoding:
Text File  |  1995-12-12  |  8.0 KB  |  386 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMMComponent.a
  3. ;
  4. ;    Contains:    ColorSync CMM Components
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.0
  7. ;                Release:    2.0f3
  8. ;
  9. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, send the file and version
  13. ;                information (from above) and the problem description to:
  14. ;
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__CMMCOMPONENT__') = 'UNDEFINED' THEN
  21. __CMMCOMPONENT__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  30.     include 'Quickdraw.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'QuickdrawText.a'                                    ;
  34. ;            include 'ScriptLayout.a'                                ;
  35.  
  36.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  37.     include 'Components.a'
  38.     ENDIF
  39.  
  40.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  41.     include 'CMApplication.a'
  42.     ENDIF
  43. ;        include 'Files.a'                                            ;
  44. ;            include 'OSUtils.a'                                    ;
  45. ;                include 'Memory.a'                                    ;
  46. ;            include 'Finder.a'                                        ;
  47. ;        include 'Printing.a'                                        ;
  48. ;            include 'Errors.a'                                        ;
  49. ;            include 'Dialogs.a'                                    ;
  50. ;                include 'Windows.a'                                ;
  51. ;                    include 'Events.a'                                ;
  52. ;                    include 'Controls.a'                            ;
  53. ;                        include 'Collections.a'                    ;
  54. ;                        include 'Appearance.a'                        ;
  55. ;                        include 'TextObjects.a'                    ;
  56. ;                            include 'Unicode.a'                    ;
  57. ;                        include 'Menus.a'                            ;
  58. ;                    include 'AppleEvents.a'                        ;
  59. ;                        include 'EPPC.a'                            ;
  60. ;                            include 'AppleTalk.a'                    ;
  61. ;                            include 'PPCToolbox.a'                    ;
  62. ;                            include 'Processes.a'                    ;
  63. ;                        include 'Notification.a'                    ;
  64. ;                            include 'Kernel.a'                        ;
  65. ;                                include 'MachineExceptions.a'        ;
  66. ;                                include 'Timing.a'                    ;
  67. ;                    include 'Drag.a'                                ;
  68. ;                        include 'TextEdit.a'                        ;
  69. ;        include 'CMICCProfile.a'                                    ;
  70.  
  71. CMMInterfaceVersion                EQU        1
  72.  
  73. ; Component function selectors 
  74. ; Required 
  75. kCMMInit                        EQU        0
  76. kNCMMInit                        EQU        6
  77. kCMMMatchColors                    EQU        1
  78. kCMMCheckColors                    EQU        2
  79.  
  80. ; Optional 
  81. kCMMValidateProfile                EQU        8
  82. kCMMFlattenProfile                EQU        14
  83. kCMMUnflattenProfile            EQU        15
  84. kCMMMatchBitmap                    EQU        9
  85. kCMMCheckBitmap                    EQU        10
  86. kCMMMatchPixMap                    EQU        3
  87. kCMMCheckPixMap                    EQU        4
  88. kCMMConcatenateProfiles            EQU        5
  89. kCMMConcatInit                    EQU        7
  90. kCMMNewLinkProfile                EQU        16
  91. kCMMGetPS2ColorSpace            EQU        11
  92. kCMMGetPS2ColorRenderingIntent    EQU        12
  93. kCMMGetPS2ColorRendering        EQU        13
  94. kCMMGetPS2ColorRenderingVMSize    EQU        17
  95.  
  96. ;
  97. ; pascal CMError NCMInit(ComponentInstance CMSession, CMProfileRef srcProfile, CMProfileRef dstProfile)
  98. ;
  99.     IF ¬ GENERATINGCFM THEN
  100.         Macro
  101.         _NCMInit
  102.             dc.w     $2F3C
  103.             dc.w     $0000
  104.             dc.w     $0000
  105.             moveq    #0,d0
  106.             dc.w     $A82A
  107.         EndM
  108.     ELSE
  109.         IMPORT    NCMInit
  110.     ENDIF
  111.  
  112. ;
  113. ; pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  114. ;
  115.     IF ¬ GENERATINGCFM THEN
  116.         Macro
  117.         _CMInit
  118.             dc.w     $2F3C
  119.             dc.w     $0000
  120.             dc.w     $0000
  121.             moveq    #0,d0
  122.             dc.w     $A82A
  123.         EndM
  124.     ELSE
  125.         IMPORT    CMInit
  126.     ENDIF
  127.  
  128. ;
  129. ; pascal CMError CMMatchColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count)
  130. ;
  131.     IF ¬ GENERATINGCFM THEN
  132.         Macro
  133.         _CMMatchColors
  134.             dc.w     $2F3C
  135.             dc.w     $0000
  136.             dc.w     $0000
  137.             moveq    #0,d0
  138.             dc.w     $A82A
  139.         EndM
  140.     ELSE
  141.         IMPORT    CMMatchColors
  142.     ENDIF
  143.  
  144. ;
  145. ; pascal CMError CMCheckColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count, long *result)
  146. ;
  147.     IF ¬ GENERATINGCFM THEN
  148.         Macro
  149.         _CMCheckColors
  150.             dc.w     $2F3C
  151.             dc.w     $0002
  152.             dc.w     $0000
  153.             moveq    #0,d0
  154.             dc.w     $A82A
  155.         EndM
  156.     ELSE
  157.         IMPORT    CMCheckColors
  158.     ENDIF
  159.  
  160. ; Optional functions 
  161. ;
  162. ; pascal CMError CMMValidateProfile(ComponentInstance CMSession, CMProfileRef prof, Boolean *valid)
  163. ;
  164.     IF ¬ GENERATINGCFM THEN
  165.         Macro
  166.         _CMMValidateProfile
  167.             dc.w     $2F3C
  168.             dc.w     $0000
  169.             dc.w     $0000
  170.             moveq    #0,d0
  171.             dc.w     $A82A
  172.         EndM
  173.     ELSE
  174.         IMPORT    CMMValidateProfile
  175.     ENDIF
  176.  
  177. ;
  178. ; pascal CMError CMMFlattenProfile(ComponentInstance CMSession, CMProfileRef prof, unsigned long flags, CMFlattenUPP proc, void *refCon)
  179. ;
  180.     IF ¬ GENERATINGCFM THEN
  181.         Macro
  182.         _CMMFlattenProfile
  183.             dc.w     $2F3C
  184.             dc.w     $0006
  185.             dc.w     $0004
  186.             moveq    #0,d0
  187.             dc.w     $A82A
  188.         EndM
  189.     ELSE
  190.         IMPORT    CMMFlattenProfile
  191.     ENDIF
  192.  
  193. ;
  194. ; pascal CMError CMMUnflattenProfile(ComponentInstance CMSession, FSSpec *resultFileSpec, CMFlattenUPP proc, void *refCon)
  195. ;
  196.     IF ¬ GENERATINGCFM THEN
  197.         Macro
  198.         _CMMUnflattenProfile
  199.             dc.w     $2F3C
  200.             dc.w     $0002
  201.             dc.w     $0005
  202.             moveq    #0,d0
  203.             dc.w     $A82A
  204.         EndM
  205.     ELSE
  206.         IMPORT    CMMUnflattenProfile
  207.     ENDIF
  208.  
  209. ;
  210. ; pascal CMError CMMatchBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  211. ;
  212.     IF ¬ GENERATINGCFM THEN
  213.         Macro
  214.         _CMMatchBitmap
  215.             dc.w     $2F3C
  216.             dc.w     $0006
  217.             dc.w     $0000
  218.             moveq    #0,d0
  219.             dc.w     $A82A
  220.         EndM
  221.     ELSE
  222.         IMPORT    CMMatchBitmap
  223.     ENDIF
  224.  
  225. ;
  226. ; pascal CMError CMCheckBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  227. ;
  228.     IF ¬ GENERATINGCFM THEN
  229.         Macro
  230.         _CMCheckBitmap
  231.             dc.w     $2F3C
  232.             dc.w     $0006
  233.             dc.w     $0000
  234.             moveq    #0,d0
  235.             dc.w     $A82A
  236.         EndM
  237.     ELSE
  238.         IMPORT    CMCheckBitmap
  239.     ENDIF
  240.  
  241. ;
  242. ; pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  243. ;
  244.     IF ¬ GENERATINGCFM THEN
  245.         Macro
  246.         _CMMatchPixMap
  247.             dc.w     $2F3C
  248.             dc.w     $0002
  249.             dc.w     $0000
  250.             moveq    #0,d0
  251.             dc.w     $A82A
  252.         EndM
  253.     ELSE
  254.         IMPORT    CMMatchPixMap
  255.     ENDIF
  256.  
  257. ;
  258. ; pascal CMError CMCheckPixMap(ComponentInstance CMSession, const PixMap *myPixMap, CMBitmapCallBackUPP progressProc, BitMap *myBitMap, void *refCon)
  259. ;
  260.     IF ¬ GENERATINGCFM THEN
  261.         Macro
  262.         _CMCheckPixMap
  263.             dc.w     $2F3C
  264.             dc.w     $0006
  265.             dc.w     $0000
  266.             moveq    #0,d0
  267.             dc.w     $A82A
  268.         EndM
  269.     ELSE
  270.         IMPORT    CMCheckPixMap
  271.     ENDIF
  272.  
  273. ;
  274. ; pascal CMError CMConcatInit(ComponentInstance CMSession, CMConcatProfileSet *profileSet)
  275. ;
  276.     IF ¬ GENERATINGCFM THEN
  277.         Macro
  278.         _CMConcatInit
  279.             dc.w     $2F3C
  280.             dc.w     $0000
  281.             dc.w     $0000
  282.             moveq    #0,d0
  283.             dc.w     $A82A
  284.         EndM
  285.     ELSE
  286.         IMPORT    CMConcatInit
  287.     ENDIF
  288.  
  289. ;
  290. ; pascal CMError CMNewLinkProfile(ComponentInstance CMSession, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  291. ;
  292.     IF ¬ GENERATINGCFM THEN
  293.         Macro
  294.         _CMNewLinkProfile
  295.             dc.w     $2F3C
  296.             dc.w     $0002
  297.             dc.w     $0006
  298.             moveq    #0,d0
  299.             dc.w     $A82A
  300.         EndM
  301.     ELSE
  302.         IMPORT    CMNewLinkProfile
  303.     ENDIF
  304.  
  305. ;
  306. ; pascal CMError CMMGetPS2ColorSpace(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  307. ;
  308.     IF ¬ GENERATINGCFM THEN
  309.         Macro
  310.         _CMMGetPS2ColorSpace
  311.             dc.w     $2F3C
  312.             dc.w     $0006
  313.             dc.w     $0001
  314.             moveq    #0,d0
  315.             dc.w     $A82A
  316.         EndM
  317.     ELSE
  318.         IMPORT    CMMGetPS2ColorSpace
  319.     ENDIF
  320.  
  321. ;
  322. ; pascal CMError CMMGetPS2ColorRenderingIntent(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  323. ;
  324.     IF ¬ GENERATINGCFM THEN
  325.         Macro
  326.         _CMMGetPS2ColorRenderingIntent
  327.             dc.w     $2F3C
  328.             dc.w     $0006
  329.             dc.w     $0002
  330.             moveq    #0,d0
  331.             dc.w     $A82A
  332.         EndM
  333.     ELSE
  334.         IMPORT    CMMGetPS2ColorRenderingIntent
  335.     ENDIF
  336.  
  337. ;
  338. ; pascal CMError CMMGetPS2ColorRendering(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  339. ;
  340.     IF ¬ GENERATINGCFM THEN
  341.         Macro
  342.         _CMMGetPS2ColorRendering
  343.             dc.w     $2F3C
  344.             dc.w     $0000
  345.             dc.w     $0003
  346.             moveq    #0,d0
  347.             dc.w     $A82A
  348.         EndM
  349.     ELSE
  350.         IMPORT    CMMGetPS2ColorRendering
  351.     ENDIF
  352.  
  353. ;
  354. ; pascal CMError CMMGetPS2ColorRenderingVMSize(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long *vmSize)
  355. ;
  356.     IF ¬ GENERATINGCFM THEN
  357.         Macro
  358.         _CMMGetPS2ColorRenderingVMSize
  359.             dc.w     $2F3C
  360.             dc.w     $0002
  361.             dc.w     $0007
  362.             moveq    #0,d0
  363.             dc.w     $A82A
  364.         EndM
  365.     ELSE
  366.         IMPORT    CMMGetPS2ColorRenderingVMSize
  367.     ENDIF
  368.  
  369. ;
  370. ; pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  371. ;
  372.     IF ¬ GENERATINGCFM THEN
  373.         Macro
  374.         _CMConcatenateProfiles
  375.             dc.w     $2F3C
  376.             dc.w     $0002
  377.             dc.w     $0000
  378.             moveq    #0,d0
  379.             dc.w     $A82A
  380.         EndM
  381.     ELSE
  382.         IMPORT    CMConcatenateProfiles
  383.     ENDIF
  384.  
  385.     ENDIF ; __CMMCOMPONENT__
  386.